package com.lagou.data;

public class MethodBeanInfo {
    private String methodName;
    private long time;
    private long endTime;

    public MethodBeanInfo(String methodName, long time) {
        this.methodName = methodName;
        this.time = time;
    }

    public MethodBeanInfo(String methodName, long time, long endTime) {
        this.methodName = methodName;
        this.time = time;
        this.endTime = endTime;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    @Override
    public String toString() {
        return "MethodBeanInfo{" +
                "time=" + time +
                '}';
    }

    public boolean endTimeBetween(long currentTime) {
        return (currentTime - endTime) / 1000 < 60;
    }
}
